package com.wx.datastructure.stack.array;

/**
 * @author wx
 * @Description: 数组类型-栈测试
 * @date 2018/12/10 001018:26
 */
public class StackMain {
    public static void main(String[] agrs){
        ArrayStack<String> arrayStack = new ArrayStack();
        arrayStack.push("wx");
        arrayStack.push("w2");
        arrayStack.push("wx3");
        System.out.println(arrayStack.isEmpty());
        System.out.println(arrayStack.size());
        System.out.println(arrayStack.peek());
        System.out.println(arrayStack.pop());
        System.out.println(arrayStack.size());
        System.out.println(arrayStack.pop());
    }
}
